package com.gigmissions.client.ui;

import com.gigmissions.client.Main;
import com.google.gwt.user.client.DeferredCommand;
import com.google.gwt.user.client.ui.AbsolutePanel;
import com.google.inject.Inject;



public class MainVerticalPanel extends AbsolutePanel {
	
	private MainTabPanel mainTabPanel;
	private TopBarPanel topBarPanel;
	private Main main;
			
	@Inject
	public MainVerticalPanel(Main main,TopBarPanel topBarPanel,MainTabPanel mainTabPanel){
		this.mainTabPanel = mainTabPanel;
		this.topBarPanel = topBarPanel;
		this.main = main;
		this.setWidth("100%");
		this.setHeight("100%");
		this.add(this.topBarPanel);
		this.add(this.mainTabPanel);
	}

	public MainTabPanel getMainTabPanel() {
		return mainTabPanel;
	}

	@Override
	protected void onAttach() {
		super.onAttach();
		DeferredCommand.addCommand(main);
			
	}
	
	
	
	
	

}
